<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="includes/top.jsp" />

<img src ="${feed.image.url}" alt="${feed.image.description}" />
<p>${feed.description}</p>

<ul>
<c:forEach var="entry" items="${feed.entries}">
    <li>
        <h3>Entry: ${entry.title}</h3>
        <p>${entry.description.value}</p>
        <em>Thumbs up: ${entry.thumbsUp}</em>

        <div class="control-buttons">
            <a href="feedActionHandler.htm?feedId=${feed.id}&entryId=${entry.entryID}&action=markRead" title="markRead">Mark as read</a>
            <a href="feedActionHandler.htm?feedId=${feed.id}&entryId=${entry.entryID}&action=thumbUp" title="Thumbs up">Thumbs up</a>
        </div>
    </li>
</c:forEach>
</ul>

<jsp:include page="includes/bottom.jsp" />